#include <iostream>
#include <cryptopp/sha.h>
#include <cryptopp/hex.h>
int main(int argc, const char *argv[])
{
CryptoPP::SHA hash;
byte digest[ CryptoPP::SHA::DIGESTSIZE ];
std::string message = argv[1];

hash.CalculateDigest( digest, (byte*) message.c_str(), message.length() );

CryptoPP::HexEncoder encoder;
std::string output;
encoder.Attach( new CryptoPP::StringSink(output));
encoder.Put(digest, sizeof(digest));
encoder.MessageEnd();

std::cout << ("\n\n") << (output) << std::endl;
}
